# -*- coding: utf-8 -*-
"""
Created on date 2017/11/30 18:43

@author: michael_xu
"""

import time
from datetime import datetime

# %Y-%m-%d %H:%M:%S
tm = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print("current time is {0}".format(tm))

tm1 = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
print("current time is {0}".format(tm1))
